/**
 * @Author: guo-bomin 2974463764@qq.com
 * @Date: 2023-12-15 11:58:31
 * @LastEditors: guo-bomin 2974463764@qq.com
 * @LastEditTime: 2023-12-15 12:42:36
 * @FilePath: \NodeJs\wechat-test\config\config.default.js
 * @Description: 郭博民16670506200
 * @有问题微信同号询问，急事call我
 * @Copyright (c) 2023 by 湖南習羽网络科技有限公司, All Rights Reserved. 
 */
/* eslint valid-jsdoc: "off" */

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = appInfo => {
  /**
   * built-in config
   * @type {Egg.EggAppConfig}
   **/
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1702612686473_7777';

  // add your middleware config here
  config.middleware = [];

  //配置ernie
	config.ernie = {
		client_id: 'j7pjQs1sDXGoiR4aoGW3N1pp', //API Key
		client_secret: 'Tvtzo8lRCynXleYNbFm5NDOcHeGoZjv4',//Secret Key
		access_token: '',//先置空，后续由程序填充
		expire_day: 30 //access_token过期时长（天）
	}

  // add your user config here
  const userConfig = {
    // myAppName: 'egg',
  };



  return {
    ...config,
    ...userConfig,
  };
};
